package spring.spring_blog.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 为每一个接口提供一个数据的接收类
 */

@Data
public class loginReq {
    @NotNull(message = "username不能为空")
    @Length(max = 20)
    String userName;

    @NotNull(message = "password不能为空")
    @Length(max = 12)
    String password;
}
